﻿using System.Web.Mvc;
using Crimson;
using Ornament.MVCWebFrame.Models;

namespace Ornament.MVCWebFrame.Controllers
{
    [HandleError]
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            var dao = new JinTai.WebSite.Dao.FashiScheduleDao();
            var items = dao.GetTopSchedule();
            ViewData["fashi"] = items;

            ViewData["金台寺"] = InfoManager.DaoFactory.InfoDao.Find("金台寺", 0, 10, false, InfoState.Published);
            ViewData["白衣古寺"] = InfoManager.DaoFactory.InfoDao.Find("白衣古寺", 0, 10, false, InfoState.Published);
            ViewData["隐秀寺"] = InfoManager.DaoFactory.InfoDao.Find("隐秀寺", 0, 10, false, InfoState.Published);
            ViewData["河南禅院"] = InfoManager.DaoFactory.InfoDao.Find("隐秀寺", 0, 10, false, InfoState.Published);
            return View();
        }

        public ActionResult About()
        {
            return View();
        }
    }
}